<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.net.URLDecoder"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<style type="text/css">
	#form1{
	width: 600px;
	height: 300px;
	font-size: 24px;	
	margin-top: 100px;
	margin-left: 500px
	}
	#userName{
	width: 200px;
	height: 24px;
	margin-left: -10px;
	}
	#password{
	width: 200px;
	height: 24px;
	margin-left: -10px;
	}
	#VerifiCode{
	width: 200px;
	height: 24px;
	margin-left: 100px;
	margin-top: 25px;
	}
	.submit{
	width: 100px;
	height: 30px;
	border-color: #0061b0;
	background-color: #0061b0;
	margin-left: 100px;
	}
</style>

</head>
<body>
<%
	request.setCharacterEncoding("utf-8");
	String info=request.getParameter("msg");
	if(info !=null && info!=""){
		
		if(info.equals("0")){
			out.print("<script type='text/javascript'>alert('用户名或密码错误！');</script>");
		}
		if(info.equals("1")){
			out.print("<script type='text/javascript'>alert('验证码不正确！');</script>");
		}
	}
%>
	<form action="Validate.jsp" id="form1" method="post" >
		
		
		<div class="name">用户名：
		<input type="text" name="userName" id="userName"></div><br>
		<div class="pwd">密　码：
		<input type="password" name="password" id="password"></div><br>
		
		<div>验证码：<img name="img" id="img" src="VerifiCode.jsp" onclick="this.src='VerifiCode.jsp?a=' + Math.random()"><br>
			<input type="text" name="VerifiCode" id="VerifiCode">
		</div><br>
		<div ><input type="submit" value="登录" class="submit"></div>
	</form>
</body>
</html>